/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package projekt;

/**
 * Creature class representing the player in the game. Variables set in the
 * constructor.
 */
public class Hero extends Creature {

    /**
     * Hero objects current X.
     */
    private int heroX;
    /**
     * Hero objects current Y.
     */
    private int heroY;
    /**
     * Value used in leveling up.
     */
    private final int levelVal = 5;
    /**
     * XP limit to reach for leveling.
     */
    private int xpLimit = 500;

    /**
     * Constructor for hero class.
     *
     * @param hp Health
     * @param attackDmg DMG
     * @param armor Armor
     * @param gold Gold
     * @param xp EXP
     * @param name Name.
     */
    public Hero(final int hp, final int attackDmg, final int armor,
            final int gold, final int xp, final String name) {

        setHp(hp);
        setAttackDmg(attackDmg);
        setArmor(armor);
        setGold(gold);
        setXp(xp);
        setSymbol("@");
        setName(name);

    }

 

    /**
     * Level up method used when the player reaches a certain XP number.
     */
    public final void levelUp() {
        setArmor(getArmor() + levelVal);
        setAttackDmg(getAttackDmg() + levelVal);
        xpLimit = xpLimit * 2;
    }

    public final int getXpL() {
        return xpLimit;
    }
    public int getHeroX() {
        return heroX;
    }
    public int getHeroY() {
        return heroY;
    }
    
    
}
